package aatesting;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class UnitTest {
	
	public static void main(String args[])
	{
	      String str = "-1  2421  2033029678";
	      String strs[]=str.split("\\s+");
	      
	      for(int i=0; i<strs.length; i++)
	      {
	    	  System.out.println(i+": "+strs[i]);
	      }
	      
	      if(isNumeric("center"))
	      {
	    	  System.out.println("Yes");
	      }
	      else
	      {
	    	  System.out.println("No");
	      }
	      
	      
	      String s1="Maria De Los Angeles Alvarez Fernandez";
	      String s2="Precious Jivinali Tobias Chimbamba";
	      System.out.println(vowelCounts(s2));
	}

	public static int vowelCounts(String s)
	{
		int vowelCount = 0;
		for (int i = 0; i < s.length(); i++) {
		    switch(s.charAt(i)) {
		        case 'a':
		        case 'e':
		        case 'i':
		        case 'o':
		        case 'u':
		            vowelCount++;
		            break;
		        default:
		    }
		}
		return vowelCount;
	}
	public static boolean isNumeric(String str)  
	{  
	  try  
	  {  
	    double d = Double.parseDouble(str);  
	  }  
	  catch(NumberFormatException nfe)  
	  {  
	    return false;  
	  }  
	  return true;  
	}
}
